import {
	sendAjax
} from "./request.js"


//获取ssion
export const PsessionId = (params, resolve, reject) => {

	sendAjax('/api/user/psession_id', 'POST', params, function(data) {

		resolve(data);

	}, reject);

}

//登录
export const Login = (params, resolve, reject) => {

	sendAjax('/api/user/login', 'POST', params, function(data) {

		resolve(data);

	}, reject);

}

//注册
export const Register = (params, resolve, reject) => {

	sendAjax('/api/user/registers', 'POST', params, function(data) {

		resolve(data);

	}, reject);

}

//获取验证码
export const SendRegVerify = (params, resolve, reject) => {

	sendAjax('/api/user/send_reg_verify', 'POST', params, function(data) {

		resolve(data);

	}, reject);

}

//忘记密码
export const FindLoginPassword = (params, resolve, reject) => {

	sendAjax('/api/user/find_login_password', 'POST', params, function(data) {

		resolve(data);

	}, reject);

}

//首页 会员列表
export const MemberList = (params, resolve, reject) => {

	sendAjax('/api/user/paidanlist', 'POST', params, function(data) {

		resolve(data);

	}, reject);
	
}	

//用户信息
export const UserInfo = (params, resolve, reject) => {

	sendAjax('/api/user/home_index', 'POST', params, function(data) {

		resolve(data);

	}, reject);

}

//订单详情
export const Paidang = (params, resolve, reject) => {

	sendAjax('/api/chongwu/paidang', 'POST', params, function(data) {

		resolve(data);

	}, reject);

}

//提现信息
export const WithdrawalInfo = (params, resolve, reject) => {

	sendAjax('/api/user/fac_extract', 'GET', params, function(data) {

		resolve(data);

	}, reject);

}

//提现
export const Withdrawal = (params, resolve, reject) => {

	sendAjax('/api/user/tixian', 'POST', params, function(data) {

		resolve(data);

	}, reject);

}

//提现列表
export const WithdrawalList = (params, resolve, reject) => {

	sendAjax('/api/user/tixian_list', 'POST', params, function(data) {

		resolve(data);

	}, reject);

}

//上传图片
export const UpLoad = (params, resolve, reject) => {

	sendAjax('/api/mycards/upload', 'POST', params, function(data) {

		resolve(data);

	}, reject);

}

//实名认证状态
export const CheckSmrz = (params, resolve, reject) => {

	sendAjax('/api/user/check_smrz', 'POST', params, function(data) {

		resolve(data);

	}, reject);

}

//实名认证
export const UpSmrz = (params, resolve, reject) => {

	sendAjax('/api/user/up_smrz', 'POST', params, function(data) {

		resolve(data);

	}, reject);

}

//客服
export const Kefu = (params, resolve, reject) => {

	sendAjax('/api/user/lxkf', 'POST', params, function(data) {

		resolve(data);

	}, reject);

}


//修改个人头像
export const UpHead = (params, resolve, reject) => {

	sendAjax('/api/user/up_member', 'POST', params, function(data) {

		resolve(data);

	}, reject);

}

//系统消息
export const SysteMsg = (params, resolve, reject) => {

	sendAjax('/api/article/systems', 'POST', params, function(data) {

		resolve(data);

	}, reject);

}

//系统消息详情
export const ArticleDdesc = (params, resolve, reject) => {

	sendAjax('/api/article/article_desc', 'POST', params, function(data) {

		resolve(data);

	}, reject);

}


//邀请好友
export const InviteCode = (params, resolve, reject) => {

	sendAjax('/api/user/yaoqing', 'POST', params, function(data) {

		resolve(data);

	}, reject);

}

//充值
export const RechargeAmount = (params, resolve, reject) => {

	sendAjax('/api/user/surechongzhi', 'POST', params, function(data) {

		resolve(data);

	}, reject);
	
}

//获取usdt地址
export const getUSTD = (params, resolve, reject) => {

	sendAjax('/api/user/chongzhi', 'POST', params, function(data) {

		resolve(data);

	}, reject);
	
}

//划转信息
export const Transfer = (params, resolve, reject) => {

	sendAjax('/api/user/huazhuan', 'POST', params, function(data) {

		resolve(data);

	}, reject);
	
}

//划转
export const StartTransfer = (params, resolve, reject) => {

	sendAjax('/api/user/surehuazhuan', 'POST', params, function(data) {

		resolve(data);

	}, reject);
	
}

//团队设置信息
export const TeamSet = (params, resolve, reject) => {

	sendAjax('/api/user/teamset', 'POST', params, function(data) {

		resolve(data);

	}, reject);
	
}	

//团队设置提交
export const TeamSetApi = (params, resolve, reject) => {

	sendAjax('/api/user/sureteamset', 'POST', params, function(data) {

		resolve(data);

	}, reject);
	
}	

//我的团队信息
export const MyTeam = (params, resolve, reject) => {

	sendAjax('/api/user/myteam', 'POST', params, function(data) {

		resolve(data);

	}, reject);
	
}

//团队收益明细
export const TeamList = (params, resolve, reject) => {

	sendAjax('/api/user/tdsylist', 'POST', params, function(data) {

		resolve(data);

	}, reject);
	
}	

//退出登陆
export const LogOut = (params, resolve, reject) => {

	sendAjax('/api/user/logout', 'POST', params, function(data) {

		resolve(data);

	}, reject);
	
}	